#!/bin/bash
HOST=$1
USER_HOST=$2
PASSWD_HOST=$3
USER_GUEST=$4
PASSWD_GUEST=$5
VMX_FILE=$6
CMD=$7
INTERPRETER_PATH=$8

vmrun -h $HOST -u $USER_HOST -p $PASSWD_HOST -gu $USER_GUEST -gp $PASSWD_GUEST runScriptInGuest "$VMX_FILE" $INTERPRETER_PATH "$CMD"
 